﻿using MixerReport.Common.Types;
using S7.Net;

namespace Hyjx.MixerReportService.Configs
{
    /// <summary>
    /// 设备 PLC 配置
    /// </summary>
    public class DevicePlcConfig
    {
        /// <summary>
        /// 设备编码
        /// </summary>
        public string DeviceCode { get; set; } = string.Empty;
        /// <summary>
        /// 设备名称
        /// </summary>
        public string DeviceName { get; set; } = string.Empty;
        /// <summary>
        /// IP 地址
        /// </summary>
        public string Ip { get; set; } = string.Empty;
        /// <summary>
        /// 机架
        /// </summary>
        public short Rack { get; set; }
        /// <summary>
        /// 插槽
        /// </summary>
        public short Slot { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnabled { get; set; }
        /// <summary>
        /// CPU 类型
        /// </summary>
        public CpuType CpuType { get; set; }
        /// <summary>
        /// 功能类型
        /// </summary>
        public PlcFeatureTypes FeatureType { get; set; }

    }
}
